#!/bin/bash

# usage: ./run.sh <k : num of files>
>results.log

# buf_size = 1
for((stream=1; stream<=2; stream++))
do
	for((k=1; k<=1024; k*=2))
	do
		for((N=1000; N<=100000000; N*=10))
		do
			make cleandata
			make cleanresult
			./randomN.out $N $k
			./streams.out $k $N 1 ${stream}>> results.log 2>&1
		done
	done
done

make cleandata
make cleanresult
